﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web_HengliSeed.Sys_Manage
{
    public partial class M_WebLinkInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ClassFile.Function.CheckState();
            if (!IsPostBack)
            {
                LoadData();
            }
        }
        private void LoadData()
        {
            RpProduct.DataSource = BLL.WebLink.GetClassMes();
            RpProduct.DataBind();
        }

        protected void RpProduct_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            if (e.CommandName == "Del")
            {
                if (BLL.WebLink.DelClassMes((e.CommandArgument.ToString())))
                {
                    Common.ShowMessage.Show(Page, "seuss", "链接信息删除成功...", "M_WebLinkInfo.aspx");
                }
                else
                {
                    Common.ShowMessage.Show(Page, "errer", "链接信息删除失败，请重试或联系技术人员...", "M_WebLinkInfo.aspx");
                }
            }
        }
    }
}
